package com.fudan.adse.domain.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;

/**
 * @author Jerry Zhang
 * create: 2022-11-23 23:02
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class NewOrderDTO {
    @NotBlank(message = "用户名不能为空")
    private String username;
    @NotBlank(message = "场次 id 不能为空")
    private Integer rowPieceId;
    @Min(value = 0, message = "单价应该大于等于 0")
    private Double price;
    @NotBlank(message = "选择位置不能为空")
    private String seats;
    private String phone;
}
